D:\git\skunkworks\herald-for-cpp\herald\src\engine\coordinator.cpp
Line | Count | Source |
1 | | // Copyright 2021 Herald Project Contributors |
2 | | // SPDX-License-Identifier: Apache-2.0 |
3 | | // |
4 | | |
5 | | #include "herald/engine/coordinator.h" |
6 | | |
7 | | #include <memory> |
8 | | |
9 | | namespace herald { |
10 | | namespace engine { |
11 | | |
12 | | bool operator<(const std::reference_wrapper<CoordinationProvider> first, const std::reference_wrapper<CoordinationProvider> second) |
13 | 4 | { |
14 | 4 | return &(first.get()) < &(second.get()); // use reference_wrapper's call operator to fetch the underlying reference |
15 | 4 | } |
16 | | |
17 | | } |
18 | | } |